<?php

function gen() {
    yield from $a++;
}
